#include "livingroom.h"
#include "ui_livingroom.h"

LivingRoom::LivingRoom(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::LivingRoom)
{
    ui->setupUi(this);
    QObject::connect(ui->temperature, SIGNAL(clicked()),
                       this, SIGNAL(livingtemperature()));

    QObject::connect(ui->humidity, SIGNAL(clicked()),
                       this, SIGNAL(livinghumidity()));

    QObject::connect(ui->ill, SIGNAL(clicked()),
                       this, SIGNAL(livingill()));

    QObject::connect(ui->light, SIGNAL(clicked()),
                       this, SIGNAL(livinglight()));

    QObject::connect(ui->alarm, SIGNAL(clicked()),
                       this, SIGNAL(livingalarm()));

    QObject::connect(ui->fan, SIGNAL(clicked()),
                       this, SIGNAL(livingfan()));


}

LivingRoom::~LivingRoom()
{
    delete ui;
}
